﻿
@{
    ViewBag.Title = "CreateGoods";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}

<div class="create-goods-wrap">
    <div class="create-goods-nav">
        <div class="goods-nav">
            <span>
                @TempData["f-nav"] > @TempData["s-nav"]
            </span>
        </div>
    </div>
    <form method="post" action="/Store/AddGoods" class="layui-form wrap-form">
        <div class="box">
            <div class="box-head">
                <div class="box-title">
                    <img src="~/Image/icon_addthing.png" />
                    <span>添加商品</span>
                </div>
            </div>
            <div class="box-body">
                <div class="wrap-left">
                    <div class="layui-form-item">
                        <label class="layui-form-label">商品名</label>
                        <div class="layui-input-block">
                            <input type="text" name="Name" lay-verify="title" autocomplete="off" placeholder="请输入商品名" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">售价</label>
                        <div class="layui-input-block">
                            <input type="text" name="Price" lay-verify="title" autocomplete="off" placeholder="请输入单价" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">起始库存</label>
                        <div class="layui-input-block">
                            <input type="text" name="Stock" lay-verify="title" autocomplete="off" placeholder="请输入起始库存" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">商品备注</label>
                        <div class="layui-input-block">
                            <input type="text" name="Mark" lay-verify="title" autocomplete="off" placeholder="请输入商品备注" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">商品类别</label>
                        <div class="layui-input-block">
                            <select name="Category" lay-filter="category">
                                <option value=""></option>
                                <option value="1" selected="">手机</option>
                                <option value="2">其他配件</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="wrap-right">
                    <div class="goods-imgs">
                        <input type="file" name="file" class="layui-upload-file" />
                        <div class="imgs">

                        </div>
                    </div>
                    <div class="layui-input-block div-left">
                        <button class="layui-btn" lay-submit="" lay-filter="bt-submit">立即提交</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>


@section Styles{
    <link href="~/CSS/create-goods.css" rel="stylesheet" />
}

@section Scripts{
    <script src="~/JS/UpLoadImg.js"></script>
}